package com.ruoyi.subjectproctoring.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.subjectproctoring.mapper.ProctoringassignmentMapper;
import com.ruoyi.subjectproctoring.domain.Proctoringassignment;
import com.ruoyi.subjectproctoring.service.IProctoringassignmentService;

/**
 * 分配记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-24
 */
@Service
public class ProctoringassignmentServiceImpl implements IProctoringassignmentService 
{
    @Autowired
    private ProctoringassignmentMapper proctoringassignmentMapper;

    /**
     * 查询分配记录
     * 
     * @param id 分配记录主键
     * @return 分配记录
     */
    @Override
    public Proctoringassignment selectProctoringassignmentById(Long id)
    {
        return proctoringassignmentMapper.selectProctoringassignmentById(id);
    }

    /**
     * 查询分配记录列表
     * 
     * @param proctoringassignment 分配记录
     * @return 分配记录
     */
    @Override
    public List<Proctoringassignment> selectProctoringassignmentList(Proctoringassignment proctoringassignment)
    {
        return proctoringassignmentMapper.selectProctoringassignmentList(proctoringassignment);
    }

    /**
     * 新增分配记录
     * 
     * @param proctoringassignment 分配记录
     * @return 结果
     */
    @Override
    public int insertProctoringassignment(Proctoringassignment proctoringassignment)
    {
        return proctoringassignmentMapper.insertProctoringassignment(proctoringassignment);
    }

    /**
     * 修改分配记录
     * 
     * @param proctoringassignment 分配记录
     * @return 结果
     */
    @Override
    public int updateProctoringassignment(Proctoringassignment proctoringassignment)
    {
        return proctoringassignmentMapper.updateProctoringassignment(proctoringassignment);
    }

    /**
     * 批量删除分配记录
     * 
     * @param ids 需要删除的分配记录主键
     * @return 结果
     */
    @Override
    public int deleteProctoringassignmentByIds(Long[] ids)
    {
        return proctoringassignmentMapper.deleteProctoringassignmentByIds(ids);
    }

    /**
     * 删除分配记录信息
     * 
     * @param id 分配记录主键
     * @return 结果
     */
    @Override
    public int deleteProctoringassignmentById(Long id)
    {
        return proctoringassignmentMapper.deleteProctoringassignmentById(id);
    }
}
